package com.mtsmda.chapter1;

import com.mtsmda.chapter1.abstractE.Car;
import com.mtsmda.chapter1.abstractE.NewNiva;
import com.mtsmda.chapter1.accessModifier.PublicClass;
import com.mtsmda.chapter1.enumEx.EnumCountry;
import com.mtsmda.chapter1.enumEx.ExampleWhereEnumInnerClass;
import com.mtsmda.chapter1.enumEx.ExampleWhereEnumInnerClass.City;
import com.mtsmda.chapter1.enumEx.SuperEnum;
import com.mtsmda.chapter1.finalE.BMW;
import com.mtsmda.chapter1.interfaceE.Constant;
import com.mtsmda.chapter1.newAccessModifier.DaugtherInTheOtherPackage;

public class Run {

	public static void main(String[] args) {
		
		DaugtherInTheOtherPackage daugtherInTheOtherPackage = new DaugtherInTheOtherPackage();
		daugtherInTheOtherPackage.lastName = "";
		
		/////
		BMW bmw = new BMW();
		bmw.setModel("x5");
		bmw.setYear("2014");
		bmw.setBWM(bmw);

		// ///

		Car car = new NewNiva();
		car.setModel("niva chevrolet");
		car.setMaxSpeed(180);
		car.description();

		// ///

		Constant constant = new Constant();
		constant.getCurrentYear();

		// ///
		PublicClass publicClass = new PublicClass();
		System.out.println(publicClass.toString());

		// ///
		ConstructorsClass constructorsClass = new ConstructorsClass(15, 19, 27,
				29, 79);
		System.out.println(constructorsClass.toString());

		// ///enum
		EnumCountry country = EnumCountry.MOLDOVA;
		System.out.println(country.name());
		System.out.println(country.compareTo(EnumCountry.MOLDOVA));

		switch (country) {
		case BELORUSSIA: {
			System.out.println("Беллоруссия");
		}
			break;

		case CHINA: {
			System.out.println("Китай");
		}
			break;

		case ENGLAND: {
			System.out.println("Англия");
		}
			break;

		case FRANCE: {
			System.out.println("Франция");
		}
			break;

		case GERMANY: {
			System.out.println("Германия");
		}
			break;

		case JAPAN: {
			System.out.println("Япония");
		}
			break;

		case KAZAHSTAN: {
			System.out.println("Казахстан");
		}
			break;

		case MOLDOVA: {
			System.out.println("Молдова");
		}
			break;

		case ROMANIA: {
			System.out.println("Румыния");
		}
			break;

		case RUSSIA: {
			System.out.println("Россия");
		}
			break;

		case UCRAINE: {
			System.out.println("Украина");
		}
			break;
		}

		ExampleWhereEnumInnerClass exampleWhereEnumInnerClass = new ExampleWhereEnumInnerClass(
				City.KISHINEV);
		System.out.println(exampleWhereEnumInnerClass.getCity().name());
		exampleWhereEnumInnerClass
				.setCity(ExampleWhereEnumInnerClass.City.BELICY);
		System.out.println(exampleWhereEnumInnerClass.getCity().name());
		System.out.println(City.KOMRAT);

		SuperEnum enum1 = SuperEnum.BARCELONA;
		System.out.println(enum1.name() + " - " + enum1.getPlace() + " "
				+ enum1.getCountry());

		System.out.println("*****");
		for (SuperEnum superEnum : SuperEnum.values()) {
			System.out.println(superEnum.name() + " - " + superEnum.getPlace()
					+ " - city - " + superEnum.getCity() + " Country "
					+ superEnum.getCountry());
		}
		
		int a[] = {15, 19};
		
	}

}